package com.zhentao.domain;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 
 * @TableName s_update_question
 */
@TableName(value ="s_update_question")
@Data
public class SUpdateQuestion implements Serializable {
    /**
     * 题目修改记录id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 用户id
     */
    @TableField(value = "user_id")
    private Integer userId;

    /**
     * 题目id
     */
    @TableField(value = "q_id")
    private Integer qId;

    /**
     * 要修改的题干
     */
    @TableField(value = "stem")
    private String stem;

    /**
     * 要修改的答案
     */
    @TableField(value = "answerTxt")
    private String answertxt;

    /**
     * 申请原因
     */
    @TableField(value = "cause")
    private String cause;

    /**
     * 创建时间
     */
    @TableField(value = "create_time",fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    /**
     * 修改时间
     */
    @TableField(value = "update_time",fill = FieldFill.UPDATE)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

    /**
     * 0:申请中 1:通过 2:未通过
     */
    @TableField(value = "status")
    private Integer status;

    /**
     * 未通过原因
     */
    @TableField(value = "back_cause")
    private String backCause;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @TableField(exist = false)
    private TUser tUser;
}